TCS_GCP\Checkout B

Total Complexity 90
Dependencies 4
Dependents 1
Total lines 836
Lines of code 538
Logical lines of code 297
Comment lines 130
Methods 25
Properties 1

Methods 25

Method Rating Maintainability Complexity Lines of code
add_gift_card_to_session()
A
38 14 71
remove_gift_card_from_session()
A
45 9 44
show_available_gift_cards_on_order_pay_endpoint()
A
42 7 59
init()
A
45 8 39
rollback()
A
46 7 39
filter_calculated_total()
S
46 5 39
before_pay_action()
S
50 5 31
withdraw_gift_cards()
S
46 4 38
thank_you_page_show_gift_card_details_after_order_table()
S
50 4 32
added_gift_cards_html()
S
55 3 20
rollback_for_order()
S
56 3 19
conditionally_enqueue_scripts_and_styles()
S
57 3 18
checkout_order_process_gift_cards()
S
57 3 18
handle_on_order_pay_page()
S
60 3 14
order_needs_payment()
S
72 2 5
register_scripts_and_styles()
S
61 1 14
clear_session()
S
74 1 5
get_html_for_giftcard_entry()
S
79 1 3
order_status_failed()
S
68 1 7
order_status_cancelled()
S
68 1 7
admin_init()
S
75 1 4
order_status_changed()
S
78 1 3
order_status_completed()
S
80 1 3
payment_complete()
S
80 1 3
__construct()
S
79 1 3